<style lang="sass" scoped>
    
</style>

<template>
<searchh :datas='searchhJson' :id.sync='id'></searchh>
</template>

<script>
    import searchh from 'commonvue/searchh'
    export default {
        components: {
            searchh
        },
        data(){
            return {
                searchhJson:[],
                id:''
            }
        },
        ready:function(){
            var mohujson=[
                    {name:'苹果',fid:1,desc:'这个是没用的介绍'},
                    {name:'雪梨',fid:2,desc:'这个是没用的介绍'},
                    {name:'香蕉',fid:3,desc:'这个是没用的介绍'},
                    {name:'西瓜',fid:4,desc:'这个是没用的介绍'},
                    {name:'西红柿',fid:5,desc:'这个是没用的介绍'},
                    {name:'罗汉果',fid:6,desc:'这个是没用的介绍'},
                ];
            var newmohujson=common.getNewJson(mohujson,['name','fid']);
            newmohujson=common.jsonNameReplace(newmohujson,'name','txt');
            newmohujson=common.jsonNameReplace(newmohujson,'fid','id');
            this.searchhJson=newmohujson;
        },
        methods:{

        }
    }
</script>

